<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择爱好</title>
    <script src="../../vue/vue.js"></script>
</head>

<body>
    <div id="app">
        <div>
            {{hobby}}
            <br>
            <label for=""><input type="checkbox" name="hobby" v-model="hobby" value="Singing">Singing</label>
            <label for=""><input type="checkbox" name="hobby" v-model="hobby" value="Dancing">Dancing</label>
            <label for=""><input type="checkbox" name="hobby" v-model="hobby" value="Rap">Rap</label>
        </div>
        <h1>你选择的爱好是：{{hobby}}</h1>

    </div>

</body>
<script>
    new Vue({
        el:"#app",
        data(){
          return {
              hobby: []
          } 
        }
        

    })
</script>

</html>